#!/usr/bin/python
# -*- coding: utf-8 -*-




class properties(object):
    def __init__(self):
        from GUI.dapi.models import Var
        self.varss=Var.objects.all()
    @property
    def WEB_SOCKET_PORT(self):
        return self.varss.filter(name="WEB_SOCKET_PORT")
    @property
    def SERIAL_SOCKET_PORT(self):
        return self.varss.filter(name="SERIAL_SOCKET_PORT")
    @property
    def WEB_SOCKET_PORT_STATUS(self):
        return self.varss.filter(name="WEB_SOCKET_PORT_STATUS")
    @property
    def SERIAL_SOCKET_PORT_STATUS(self):
        return self.varss.filter(name="SERIAL_SOCKET_PORT_STATUS")
